package com.atguigu.springcloud;

import com.atguigu.myrule.MySelfRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author XuZhuHong
 * @CreateTime 2021/11/2 20:38
 */
@SpringBootApplication
@EnableEurekaClient
// name属性为 要调用的服务名称                    configuration为加载的配置类
@RibbonClient(name = "cloud-payment-service",configuration= MySelfRule.class)
public class MainApp81 {
    public static void main(String[] args)    {
        SpringApplication.run(MainApp81.class,args);
    }
}
